<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 
        清除字符串内所有⾮英⽂字⺟字符
     -->
     <script>
        var arr = 'jfaskofja2441';
        var reg = /[\u4e00-\u9fa5]|[0-9]/gi;
        console.log('未删除前:'+arr);
        var You = arr.replace(reg,'');
        console.log('清除后:'+You)
     </script>
</body>
</html>